package com.ly.heart.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ly.heart.mapper.KingInquirySupplierMapper;
import com.ly.heart.service.IKingInquirySupplierService;
import org.springframework.stereotype.Service;
import com.ly.heart.domain.KingInquirySupplierEntity;

import javax.annotation.Resource;

/**
 * 金蝶-询价单适用供应商信息Service业务层处理
 *
 * @author cxl
 * @date 2024-07-11
 */
@Service
public class KingInquirySupplierServiceImpl extends ServiceImpl<KingInquirySupplierMapper,KingInquirySupplierEntity> implements IKingInquirySupplierService {

    @Resource
    private KingInquirySupplierMapper kingInquirySupplierMapper;

    /**
     * 查询金蝶-询价单适用供应商信息
     *
     * @param id 金蝶-询价单适用供应商信息ID
     * @return 金蝶-询价单适用供应商信息
     */
    @Override
    public KingInquirySupplierEntity selectKingInquirySupplierEntityById(String id)
    {
        return kingInquirySupplierMapper.selectKingInquirySupplierEntityById(id);
    }

    /**
     * 查询金蝶-询价单适用供应商信息列表
     *
     * @param kingInquirySupplierEntity 金蝶-询价单适用供应商信息
     * @return 金蝶-询价单适用供应商信息
     */
    @Override
    public List<KingInquirySupplierEntity> selectKingInquirySupplierEntityList(KingInquirySupplierEntity kingInquirySupplierEntity)
    {
        return kingInquirySupplierMapper.selectKingInquirySupplierEntityList(kingInquirySupplierEntity);
    }

    /**
     * 新增金蝶-询价单适用供应商信息
     *
     * @param kingInquirySupplierEntity 金蝶-询价单适用供应商信息
     * @return 结果
     */
    @Override
    public int insertKingInquirySupplierEntity(KingInquirySupplierEntity kingInquirySupplierEntity)
    {
        return kingInquirySupplierMapper.insertKingInquirySupplierEntity(kingInquirySupplierEntity);
    }

    /**
     * 修改金蝶-询价单适用供应商信息
     *
     * @param kingInquirySupplierEntity 金蝶-询价单适用供应商信息
     * @return 结果
     */
    @Override
    public int updateKingInquirySupplierEntity(KingInquirySupplierEntity kingInquirySupplierEntity)
    {
        return kingInquirySupplierMapper.updateKingInquirySupplierEntity(kingInquirySupplierEntity);
    }

    /**
     * 批量删除金蝶-询价单适用供应商信息
     *
     * @param ids 需要删除的金蝶-询价单适用供应商信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInquirySupplierEntityByIds(String[] ids)
    {
        return kingInquirySupplierMapper.deleteKingInquirySupplierEntityByIds(ids);
    }

    /**
     * 删除金蝶-询价单适用供应商信息信息
     *
     * @param id 金蝶-询价单适用供应商信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInquirySupplierEntityById(String id)
    {
        return kingInquirySupplierMapper.deleteKingInquirySupplierEntityById(id);
    }
}
